package seata.demo.common.feign;


import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import seata.demo.common.dto.AccountDTO;
import seata.demo.common.response.ObjectResponse;

@FeignClient(value = "account", path = "/account")
public interface AccountServiceFeign {

    /**
     * 从账户扣钱
     */
    @ApiOperation("从账户扣钱")
    @PostMapping("/decreaseAccount")
    ObjectResponse decreaseAccount(@RequestBody AccountDTO accountDTO);
}
